﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using Pampa.Grid.UI.CustomControls;
using Pampa.MVC.Fluent.Common;

namespace Pampa.MVC.Fluent.Grid
{
    public class WindowPagerBuilder : IHtmlString
    {
        private string _gridId;

        public WindowPagerBuilder GridClientId(string gridId)
        {
            _gridId = gridId;
            return this;
        }

        public string  ToHtmlString()
        {
            var pager = new WindowPager();
            pager.ID = "pager" + _gridId;
            pager.GridID = _gridId;
            pager.CssClass = "pager";
            return pager.Render();
        }
    }
}
